from django.urls import path

from apps.user import views
from apps.user import cxcviews
from apps.user.views import IndexView

app_name = "user"
urlpatterns = [
    path("", IndexView.as_view(), name="index"),
    path('auth/login/', views.UserLoginrView.as_view(), name='login'),
    path('auth/send_sms/',views.SMSCodeAPIView.as_view(),name='sms'),
    path('auth/usermsg/',views.MsgViews.as_view(),name='usermsg'),
    path("my_info/", cxcviews.MyInfoViews.as_view(), name='my_info'),  # 个人首页
    path("budget/", cxcviews.BudgetViews.as_view(), name='Budget'),  # 预算
    path('auth/clock/',views.UserClock.as_view(),name='clock'),
    path('auth/changeimage/',views.Changeimage.as_view(),name='Changeimage'),
    path('auth/logout/',views.UserLogoutView.as_view(),name='logout'),
    path('auth/changeusername/',views.Changeusername.as_view(),name='changeusername'),
    path('auth/changephone/',views.Changephone.as_view(),name='changephone'),
    path('auth/changesex/',views.Changesex.as_view(),name='changesex'),

]
